package vn.edu.saigontech.ncms.model.enumeration;

public enum TestSkill {
	
	SPOKEN("spoken"), WRITTEN("written");
	
	private String key;
	
	private TestSkill(String key) {
		this.key = key;
	}
	
	public static TestSkill getInstance(String name) {
		try {
			return valueOf(name);
		}
		catch(Exception ex) {}
		return null;
	}
	
	public String getKey() {
		return key;
	}
}